package org.jeecg.modules.demo.com.kunpeng.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.com.kunpeng.entity.BrandCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.com.kunpeng.entity.dto.BrandCategoryQueryListDTO;
import org.jeecg.modules.demo.com.kunpeng.vo.BrandCategoryQueryListVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 商品类别
 * @Author: jeecg-boot
 * @Date:   2023-01-12
 * @Version: V1.0
 */
@Transactional
public interface IBrandCategoryService extends IService<BrandCategory> {


    /**
     * 新增
     */
    void insert(BrandCategory brandCategory);

    /**
     * 根据类别名称模糊查询
     * @param page
     * @param brandCategoryQueryListDTO
     * @return
     */
    Page<BrandCategoryQueryListVO> queryListByCategoryName(Page<BrandCategoryQueryListVO> page, BrandCategoryQueryListDTO brandCategoryQueryListDTO);

    /**
     * 根据类别名称模糊查询全部
     * @param page
     * @param brandCategoryQueryListDTO
     * @return
     */
    Page<BrandCategoryQueryListVO> queryListByCategoryNameAll(Page<BrandCategoryQueryListVO> page,BrandCategoryQueryListDTO brandCategoryQueryListDTO);

    /**
     * 启用商品类别
     */
    void enableCategory(String id);

    /**
     * 禁用商品类别
     */
    void unEnableCategory(String id);

}
